package com.utility.project.service.impl;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.utility.project.entity.YsPaper;
import com.utility.project.mapper.YsPaperMapper;
import com.utility.project.param.PaperParam;
import com.utility.project.service.IYsPaperService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author yangzhiguo
 * @date 2024-06-22
 * @description 试卷
 */
@Service
public class YsPaperServiceImpl extends ServiceImpl<YsPaperMapper, YsPaper> implements IYsPaperService {


    @Override
    public IPage<YsPaper> queryPaperList(PaperParam paperParam) {
        Page<YsPaper> pageDTO  = new Page<>(paperParam.getPageIndex(), paperParam.getPageSize());
        return baseMapper.queryPaperList(pageDTO, paperParam);
    }

    @Override
    public List<YsPaper> queryPaperByIds(List<String> ids) {
        return baseMapper.selectBatchIds(ids);
    }
}
